import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'  //导入路由模块
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersist) 
app.use(pinia)
app.use(ElementPlus)
app.use(router)  //挂载路由模块
app.mount('#app')